package com.young.common.util;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * @description 持久对象的基类,所有的pojo对象都需要继承
 * @authhor yangwei
 * @create 2018/9/11 0011
 */
public abstract class PersistentObject {

    private static final long serialVersionUID = 5417497423315596240L;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
